package com.treeman.friend.exception;

import com.treeman.api.ApiRequestError.ApiError;

public class InvitationException extends Exception {

	private static final long serialVersionUID = 1L;

	private ApiError error;

	public InvitationException(ApiError error, String message) {
		super(message);
		this.setError(error);
	}

	public InvitationException() {
	}

	public ApiError getError() {
		return error;
	}

	public void setError(ApiError error) {
		this.error = error;
	}
}
